﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ListRepairFormOverDue.aspx.cs" Inherits="WXYW.ListRepairFormOverDue" %>

<asp:Content ID="content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    <img src="image/ctxtrain_cls.gif" />&nbsp;&nbsp;维修预警 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
    关键字<asp:TextBox ID="keyWordTextBox" runat="server" Height="16px" onkeypress="enterTxtBox('searchLinkButton')"></asp:TextBox><asp:LinkButton
        ID="searchLinkButton" runat="server" OnClick="searchLinkButton_Click">查询</asp:LinkButton><asp:LinkButton
            ID="resetLinkButton" runat="server" OnClick="resetLinkButton_Click">清除</asp:LinkButton>
    <img src="image/operateicon/print.gif" alt="" />
    <a onclick="preview()">打印</a>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <!--startprint-->
    <asp:GridView ID="myApplicationGridView" CssClass="tableList" BorderColor="#888888"
        BorderWidth="1px" runat="server" AutoGenerateColumns="False" AllowPaging="True"
        AllowSorting="True" PageSize="20" Width="100%" OnPageIndexChanging="myApplicationGridView_PageIndexChanging"
        OnRowDataBound="myApplicationGridView_RowDataBound" OnSorting="myApplicationGridView_Sorting"
        OnDataBound="myApplicationGridView_DataBound" EnableModelValidation="True">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <%-- <asp:BoundField HeaderText="已修天数" DataField="RepairDay" />--%>
            <asp:TemplateField HeaderText="已修天数" SortExpression="RepairDay">
                <ItemTemplate>
                    <span style="color: Red">
                        <asp:Label ID="overdueLabel" runat="server" Text=""></asp:Label></span><%#Eval("RepairDay")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="工程师" DataField="Engineer" SortExpression="Engineer" />
            <asp:TemplateField HeaderText="RMA#" SortExpression="ApplicationCode">
                <ItemTemplate>
                    <asp:LinkButton ID="rmalnk" runat="server" 
                        Text='<%# Bind("ApplicationCode") %>' onclick="rmalnk_Click" CommandArgument='<%# Bind("ApplicationID") %>'></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="客户名称" DataField="Customer" SortExpression="Customer" />
            <asp:BoundField HeaderText="联系电话" DataField="PhoneNumber" />
            <asp:BoundField HeaderText="派单日期" DataField="DistributeDate"/>
            <%-- <asp:TemplateField HeaderText="查看">
                <ItemTemplate>
                    <img src="image/operateicon/docview.gif" alt="" />
                    <asp:LinkButton ID="viewLinkButton" runat="server" OnClick="viewLinkButton_Click"
                        CommandArgument='<%#Eval("ID") %>'>查看</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="维修状态">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Status") %>' ToolTip='<%# Bind("Statustip") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="报价状态">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("QuoteStatus") %>' ToolTip='<%# Bind("QuoteStatusTip") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%=RecordsNumber%></span>条, <span style="color: Red">
            20</span>条/页 当前 <span style="color: Red">
                <%= myApplicationGridView.PageIndex + 1%>/<%= myApplicationGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
    </asp:GridView>
    <!--endprint-->
</asp:Content>
